package main.java.FSMDE.validation.rules;

import main.java.ERMDE.validation.ValidationType;
import main.java.FSMDE.models.Diagram;
import main.java.FSMDE.validation.IValidationEntry;


public class DiagramMustHaveInterfacesValidationEntry implements
		IValidationEntry {
	private Diagram diagram;
	
	public DiagramMustHaveInterfacesValidationEntry(Diagram diagram){
		this.diagram = diagram;
	}
	
	@Override
	public Diagram getDiagram() {
		return this.diagram;
	}

	@Override
	public String getMessage() {
		// there are no more than Start and End Interfaces. Warning
		return String.format("There is no other interface than Start or End");
	}

	@Override
	public ValidationType getType() {
		return ValidationType.WARNING;
	}

}
